Hummingbird\Core\Modules\Critical_Css D

Total Complexity 323
Dependencies 8
Dependents 0
Total lines 1,793
Lines of code 1,021
Logical lines of code 598
Comment lines 496
Methods 73
Properties 2

Methods 73

Method Rating Maintainability Complexity Lines of code
fetch_generated_css_from_api()
C
39 25 57
add_critical_css()
B
41 19 51
send_generate_critical_api_request()
B
41 18 50
get_url_type()
A
52 15 21
set_items()
A
48 13 31
get_html_for_status_tag()
A
47 13 31
critical_css_generation_complete_notice()
A
45 12 40
should_add_critical_css()
A
57 11 15
get_critical_css_path()
S
51 7 26
get_critical_for_queue()
S
54 7 23
persist_queue_to_db()
S
55 7 21
insert_load_css_script()
S
54 6 24
should_cache_exit()
S
55 6 20
unlink_generated_critical_css_file()
S
58 6 16
skip_page_type()
S
57 6 16
delete_css_cache_files()
S
57 6 16
update_item_in_persistent_queue()
S
50 5 29
get_persistent_queue()
S
60 6 13
get_queue_items_by_job_id()
S
60 6 13
make_css_async()
S
53 5 21
maybe_get_singular_page_type()
S
58 5 16
load_stylesheet_on_user_interaction()
S
50 4 31
fetch_id_from_processing_queue()
S
60 5 14
module_status()
S
61 5 12
get_mapped_type_name_for_skipping()
S
61 5 12
add_item()
S
54 4 20
generate_critical_for_queue()
S
59 4 16
get_error_code_from_log()
S
65 5 8
maybe_get_critical_css_path_for_mobile()
S
61 4 14
update_item_for_general_api_error()
S
60 4 12
get_queue_item_by_hash()
S
68 4 7
get_critical_css_url()
S
62 3 12
get_public_post_types()
S
53 2 24
get_public_taxonomies()
S
53 2 23
get_singular_page_type()
S
64 3 10
get_singular_page_id()
S
67 3 8
critical_css_status_for_queue()
S
65 3 10
schedule_generate_critical_cron()
S
65 3 10
get_item_data_for_critical_calculate_api()
S
68 3 7
schedule_get_critical_cron()
S
65 3 10
remove_used_css_from_html()
S
65 3 9
wphb_dont_combine_handles()
S
66 3 8
clear_pending_process_queue()
S
65 3 10
create_post_css_file()
S
61 2 12
regenerate_critical_css()
S
63 2 12
get_excluded_post_types()
S
57 1 19
get_queue_item_by_type()
S
69 2 7
ignore_types()
S
69 2 7
maybe_schedule_get_critical_cron()
S
73 2 5
is_cron_disabled()
S
79 2 3
toggle_critical_css()
S
64 2 10
is_mobile_critical_css_allowed()
S
78 2 3
get_critical_css_type()
S
74 2 4
is_hb_critical_css_path()
S
77 2 3
maybe_schedule_generate_critical_cron()
S
73 2 5
get_excluded_taxonomies()
S
62 1 13
run()
S
61 1 11
get_queue_option()
S
80 1 3
wp_hummingbird_default_options()
S
75 1 4
make_post_type_key()
S
79 1 3
get_log_option()
S
80 1 3
schedule_cron()
S
78 1 4
hash()
S
80 1 3
get_stylesheets()
S
67 1 8
get_used_css_markup()
S
67 1 9
used_css_path()
S
79 1 3
delete_pending_persistent_queue()
S
76 1 4
delete_all_post_meta_for_critical()
S
72 1 5
delete_post_meta_for_single_post()
S
76 1 4
revert_post_css_file()
S
71 1 6
recreate_post_css_file()
S
80 1 3
get_single_post_critical_css_status()
S
79 1 3
init()
S
72 1 5